import React from 'react'
// ===================================================================== Temp
import FormModal from '#cpt/temp/FormModal'
// ===================================================================== global declare
const { globalConfig:{COVIDUrl} } = window
// ===================================================================== component
class Index extends React.Component{
	state = {
		// 提交表单列表
		formData : [
			{ label: '报告时间',   name: 'report_at',  full:true, 	type:'date-time', after:Date.now() },
		]
	}
	submit = {}
	
	open = (uuids) => {
		this.submit = {uuids}
		this.modal.open({ formRef: this.formRef })
	}
	render(){
		return (
			<>
				{/* 修改时间 */}
				{FormModal.call(this,{ title:'修改报告时间', labelWidth:'s4', width:600, api:COVIDUrl+'caseinfo/updateReportAt',enter:false,
					onRefresh:()=>this.props.onRefresh()
				})}
				
			</>
		)
	}
}

export default Index